package com.mm.cloud.lease.dto.housing.form;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 房源修改DTO
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UpdateHousingDTO extends SaveHousingDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空")
    private Long id;

}
